修复 EU 本地化插件 (EU Localization Plugin)#5
Merged
toraidl merged 1 commit intotoraidl:mainfrom Mar 18, 2026
Merged
Conversation
1. 优化前置检查逻辑 (check_prerequisites): - 现在优先检查是否传入了 `--eu-bundle` 参数。 - 解决了因缺失 `is_port_eu_rom` 标志导致插件静默跳过的问题,确保用户显式指定资源包时插件必定运行。 2. 增强日志输出 (_replace_eu_apps): - 新增 `_get_apk_version` 方法,利用 aapt2 提取 APK 版本信息。 - 在替换应用时,输出 Target APK 与 EU Bundle APK 的版本号对比(例如 `[Target: x.x -> Bundle: y.y]`),便于排查版本不匹配问题。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
优化前置检查逻辑 (check_prerequisites):
--eu-bundle参数。is_port_eu_rom标志导致插件静默跳过的问题,确保用户显式指定资源包时插件必定运行。增强日志输出 (_replace_eu_apps):
_get_apk_version方法,利用 aapt2 提取 APK 版本信息。[Target: x.x -> Bundle: y.y]),便于排查版本不匹配问题。因为前次pr在提交前就执行过了
ruff check --fix, 导致前次pr冲突的文件很多, 我就直接同步清理掉上次更新,其次又因为我的机子已经刷好本地化的包在用了, 就先这样, 其他调整等到我下次闲的没事刷机再看看(((